package com.imooc.controller;

import com.imooc.service.StuService;
import com.imooc.pojo.Stu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wangke
 * @Description TODO
 * @Date 2021/7/3 21:50
 * @Version 1.0
 */

@RestController
public class StuController {
    @Autowired
    private StuService stuService;
    @GetMapping("/getStu")
    public Stu getStuInfo(int id){
        Stu stuInfo = stuService.getStuInfo(id);
        return stuInfo;
    }
}
